package com.travel.server.manager.dto.response.user;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

/**
 * @Author: LiZhenhui
 * @Date: 2018/11/20 11:46
 * @Desc:
 */
@Data
public class QueryPermissionResponse {

    @JSONField(name = "first_menu_list")
    private List<FirstMenuItem> firstMenuList;

    @Data
    public static class FirstMenuItem extends MenuItem{

        @JSONField(name = "second_menu_list")
        List<SecondMenuItem> secondMenuList;
    }

    @Data
    public static class SecondMenuItem extends MenuItem{

        @JSONField(name = "third_menu_list")
        private List<ThirdMenuItem> thirdMenuList;
    }

    @Data
    public static class ThirdMenuItem extends MenuItem{
        @JSONField(name = "button_menu_list")
        private List<MenuItem> buttonMenuList;
    }

    @Data
    public static class MenuItem{

        @JSONField(name = "menu_id")
        private Integer menuId;

        @JSONField(name = "menu_name")
        private String menuName;

        @JSONField(name = "is_choose")
        private Integer isChoose;
    }
}
